package com.learn.callback.level2;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: App </p>
 *
 * This example generates the exact same output as {@link App} however the callback has been
 * defined as a Lambdas expression.
 */
@Slf4j
public class App {
    /**
     * Program entry point
     */
    public static void main(String[] args) {
        Task task = new SimpleTask();
        Callback callback = () -> log.info("I'm done now.");
        task.executeWith(callback);
    }
}
